<## htsv2.97 maillist.hts - data collection/validation Sample data gathering program for htmlscript. This program shows how to get data from a form and re-prompt for incorrectly filled in fields. Once the data is input correctly, then it is written to a file. PROCEDURE FOR INSTALLING THIS ACTIVE DOCUMENT: 1. Copy the sample active document file "maillist.hts" to the directory where htmlscript active documents are stored. 2. Change the SYSTEM CONFIGURATION VARIABLES. 3. The active document should run! WHERE TO GET HELP: htmlscript maintains an open list server for the htmlscript users group. You can post messages to this list with questions and items of interest for other htmlscript users. To subscribe to this list send email to majordomo@htmlscript.com with the following on the *first line* of the message body (not the subject): subscribe hts-users youremail@domain.com To post messages to the list send email to hts-users@htmlscript.com ##> <## This line builds the URL for this active document, it should not need to be changed. The server_name variable contains the domain name of the server. The script_name variable contains the path to the htmlscript executable. The arg1 variable contains the name of the active document. ##> <## SYSTEM CONFIGURATION VARIABLES ##> <## no blank fields allowed -- active document is calling itself ##> <## if we get here than we have a complete record ##> <## let the user know they are now in our data base ##>

You have been added to the database

&[htmlscriptapplets]

Acme Corp. Mailing List

Get on our mailing list and get free email. You will be returned to this form if you do not put a value in each of the fields.

<## we have called ourselves and the user has not given all info ##> Please fill out all of the fields completely.
<## The following INPUT tags are built on-the-fly so that we can have the value = what the user has already entered. It uses the EVALUATE tag to output the INPUT to the browser ##>

Enter your name:
Enter your email address:
Enter your phone:
<## set a flag that says we have been in this form before ##>